package model;

import sun.util.calendar.LocalGregorianCalendar.Date;

public class Feed {

	// summ of simbols in feed
	public int numberSimbols;
	// sum of cell in feed
	public int numberCell;
	// sum of dublication in feed
	public int numberDublication;
	// number of feed repeat
	public int numberRepeat;
	// feed cost
	public int cost;
	// feed text
	public String text;
	// feed data
	public Date date;
	// active or not feed
	public int activ;

	public void calculateCost(int tariff, int disc) {
		cost = numberSimbols * tariff * numberCell * numberDublication
				* numberRepeat;
		int discount = cost*disc/100;
		cost -=discount;
	}

}
